<template>
  <el-select :value="value" @change="onChange">
    <el-option :value="str ? '1' : 1" label="第一学期"></el-option>
    <el-option :value="str ? '2' : 2" label="第二学期"></el-option>
  </el-select>
</template>

<script>
export default {
  name: 'SemesterSelect',
  model: {
    prop: 'value',
    event: 'change'
  },
  props: {
    value: {
      default: null
    },
    str: {
      default: false,
      type: Boolean
    }
  },
  methods: {
    onChange(data) {
      this.$emit('change', data)
    }
  }
}
</script>

<style scoped>

</style>
